/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package msn;

import Chat.ClientMan;

import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.net.Socket;

/**
 *
 * @author cart2r
 */
public class Cliente {

    private Socket cliente;
    private static  String host="localhost";
    private static  int puerto=9999;
    private ClientMan cli;
   
    Ventana vs;

    
    public Cliente(/*Ventana vs*/) {
        //this.vs=vs;
        try {
          cliente = new Socket(host,puerto) ;
          //vs.getAreaChat().setText("conectado a:"+host+":"+puerto);
          System.out.println("conectado a:"+host+""+puerto);
          cli = new ClientMan(cliente/*,vs.getAreaChat()*/);
          cli.start();
                  
        }catch(Exception ex)
        {//vs.getAreaChat().setText("no se conecto"+host+":"+puerto);}

    }
    }

    public static void main(String[] args)  {

    Cliente cle = new Cliente();
}
}


